package com.ming.dao;

import com.ming.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    List<User> selectAllUser();

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectByWord(User user);

        List<User> selectUserByPage(@Param(value = "pageOffset") Integer pageOffset, @Param(value = "pageSize") Integer pageSize);

        int allPages();


}